Jasper St. Pierre [Sat, 13 Dec 2014 01:38:27 +0000 (17:38 -0800)]
Update git.mk
This fixes the .deps of subdirs (a11y, deprecated, inspector) not
showing up in .gitignore.
Jasper St. Pierre [Sat, 13 Dec 2014 01:32:02 +0000 (17:32 -0800)]
gdk: Emit stamp-gc-h in the correct directory
Yosef Or Boczko [Fri, 12 Dec 2014 10:32:51 +0000 (12:32 +0200)]
Updated Hebrew translation
Yosef Or Boczko [Fri, 12 Dec 2014 10:30:59 +0000 (12:30 +0200)]
Updated Hebrew properties translation
Yosef Or Boczko [Fri, 12 Dec 2014 10:30:43 +0000 (12:30 +0200)]
Updated Hebrew translation
Matthias Clasen [Fri, 12 Dec 2014 03:52:59 +0000 (22:52 -0500)]
GtkFileChooser: Don't crash if invisible files are deleted
This is a crash that has been around for a long time, as
can be seen here:
https://bugzilla.redhat.com/show_bug.cgi?id=
1048388
https://bugzilla.redhat.com/show_bug.cgi?id=984375
https://bugzilla.redhat.com/show_bug.cgi?id=
1159015
https://bugzilla.redhat.com/show_bug.cgi?id=
1059187
https://bugzilla.redhat.com/show_bug.cgi?id=
1122172
https://bugzilla.redhat.com/show_bug.cgi?id=
1016895
https://bugzilla.redhat.com/show_bug.cgi?id=
1133235
https://bugzilla.redhat.com/show_bug.cgi?id=
1077500
https://bugzilla.redhat.com/show_bug.cgi?id=
1054378
https://bugzilla.redhat.com/show_bug.cgi?id=
1173212
Fix suggested by Benjamin Otte.
Christian Hergert [Thu, 11 Dec 2014 23:25:41 +0000 (15:25 -0800)]
widget: add helpers to resolve GActionGroups available to GtkWidget
These functions, while added for use by the GTK inspector, are generally
useful to applications that need to resolve what action groups are
available to a particular GtkWidget.
https://bugzilla.gnome.org/show_bug.cgi?id=741386
Matthias Clasen [Thu, 11 Dec 2014 19:49:20 +0000 (14:49 -0500)]
Make the undershoot area larger
As requested by the artists, double the size from 20 to 40.
Lapo Calamandrei [Thu, 11 Dec 2014 14:35:38 +0000 (15:35 +0100)]
Adwaita: tweak treeview dnd drop target
Lapo Calamandrei [Thu, 11 Dec 2014 12:43:41 +0000 (13:43 +0100)]
Adwaita: undershoot tweaks, more work needed.
Matthias Clasen [Thu, 11 Dec 2014 05:18:32 +0000 (00:18 -0500)]
Adwaita: Draw drag highlight around treeview rows
This got lost somewhere.
https://bugzilla.gnome.org/show_bug.cgi?id=741314
Benjamin Otte [Thu, 11 Dec 2014 11:45:20 +0000 (12:45 +0100)]
cssselector: Reserve more bits for enum
Apparently some compilers make enums an int and then we get negative
values.
https://bugzilla.gnome.org/show_bug.cgi?id=741375
Matthias Clasen [Thu, 11 Dec 2014 03:47:16 +0000 (22:47 -0500)]
inspector: Make header buttons as !focus-on-click
Moving the focus to the header bar is unexpected and disruptive,
so don't do it.
Matthias Clasen [Thu, 11 Dec 2014 03:41:45 +0000 (22:41 -0500)]
inspector: Make sure something is focusable on the stats page
Without this, the focus will not be inside the top_stack when
we switch to the statistics page and it shows the excuse. This
in turn will make the next page not take focus as expected when
switching away from the statistics page again.
Matthias Clasen [Thu, 11 Dec 2014 03:39:50 +0000 (22:39 -0500)]
inspector: Fix focus in css editor
Give the text view initial focus, so things work as expected
when switching to the css editor for the first time.
Matthias Clasen [Thu, 11 Dec 2014 03:32:45 +0000 (22:32 -0500)]
GtkStack: Improve focus handling
Add notebook-like focus handling: Keep track of the last focused
descendent of each page, and focus it again when switching back
to the page. If there is no last focused child, we move the focus
into the page as if the user had hit Tab.
Matthias Clasen [Thu, 11 Dec 2014 02:08:08 +0000 (21:08 -0500)]
Typo fix
Matt Watson [Wed, 3 Dec 2014 08:24:43 +0000 (00:24 -0800)]
GtkEntryCompletion: fix sizing bug with multiple cells
When using a completion with some custom cells in the cell layout,
if would often size wrong when first presented on screen.
The entry completion is the only place in the entire gtk code base
that calls gtk_tree_view_column_cell_get_size outside of gtktreeview
itself. It calls into the function before the tree view has done some
important validation on its cell state, the net result of which is
only the first element in the gtkcellareabox the entry completion uses
well actually have its size respected.
We now call gtk_widget_get_preferred_size on the tree view before
calling into the individual cell size routines, to guarantee that the
tree view has run its validate_rows routine and cell state is valid.
https://bugzilla.gnome.org/show_bug.cgi?id=741130
Matthias Clasen [Fri, 28 Nov 2014 22:20:23 +0000 (17:20 -0500)]
GtkScrolledWindow: Take border into account
Use the new scrollable API for getting non-scrollable borders
and draw over/undershoot at the right place. In practice, this
means that they now appear below treeview headers.
Matthias Clasen [Wed, 10 Dec 2014 11:48:56 +0000 (06:48 -0500)]
GtkTreeView: Implement get_border
Add an implementation for the new scrollable vfunc that returns
the header height as top border.
Matthias Clasen [Wed, 10 Dec 2014 11:45:21 +0000 (06:45 -0500)]
Add a gtk_scrollable_get_border
Add a vfunc to return a non-scrollable border around scrollables.
This would be nicer as a property, but we can't add properties
to an interface without breaking 3rd party implementations, so
make this an optional vfunc, and handle it not being set.
Matthias Clasen [Wed, 10 Dec 2014 15:00:45 +0000 (10:00 -0500)]
Adwaita: Initial theming for scrollable indication
This just uses a narrow shadow for now.
Matthias Clasen [Wed, 10 Dec 2014 15:00:21 +0000 (10:00 -0500)]
Add a scrollable indication
Draw a themable indication when an edge of a scrolled window
is hiding some content that can be scrolled in.
Matthias Clasen [Wed, 10 Dec 2014 04:41:28 +0000 (23:41 -0500)]
Trivial formatting fix
&& goes at the end of the line in GTK+ coding style.
Matthias Clasen [Wed, 10 Dec 2014 03:56:19 +0000 (22:56 -0500)]
GtkMenuPositionFunc: Correct annotations
x and y are inout, not just out.
https://bugzilla.gnome.org/show_bug.cgi?id=674537
Benjamin Otte [Tue, 9 Dec 2014 18:31:17 +0000 (19:31 +0100)]
styleprovider: Fold get_change() vfunc into lookup()
Benjamin Otte [Tue, 9 Dec 2014 04:26:52 +0000 (05:26 +0100)]
cssselector: Rewrite change computation
We know that non-simple selectors cause a transition to the all matcher,
so just assume the all matcher from that point on.
Benjamin Otte [Tue, 9 Dec 2014 02:21:13 +0000 (03:21 +0100)]
cssselector: Redo change verification
Instead of walking the selector tree, we walk the selectors.
Benjamin Otte [Tue, 9 Dec 2014 01:59:14 +0000 (02:59 +0100)]
cssselector: Implement tree_match() using foreach_matcher()
Benjamin Otte [Mon, 8 Dec 2014 23:35:55 +0000 (00:35 +0100)]
cssselector: Introduce a foreach_matcher vfunc
This vfunc iterates over all matchers of a selector and allows to write
functions like the match function in a generic way using foreach.
Benjamin Otte [Mon, 8 Dec 2014 17:48:24 +0000 (18:48 +0100)]
cssselector: Add a match_one vfunc
It allows a default implementation of the match() and tree_match()
functions.
Benjamin Otte [Mon, 8 Dec 2014 05:56:26 +0000 (06:56 +0100)]
cssselector: Introduce a few more default functions
Benjamin Otte [Mon, 8 Dec 2014 05:46:38 +0000 (06:46 +0100)]
cssselector: Make specificity handling a vfunc
The new region selector tracks more than just one soimple selector, so
it requires some more advanced specificity tracking.
Technically, this is still not correct, because it will report the same
specificity for
tab:sorted
and
tab:sorted:sorted
(and the second selector will be printed as the first) but this is
regions, so meh.
Benjamin Otte [Mon, 8 Dec 2014 05:22:33 +0000 (06:22 +0100)]
cssselector: Remove unused variable
The variable is FALSE for every class now.
Benjamin Otte [Mon, 8 Dec 2014 05:17:56 +0000 (06:17 +0100)]
cssselector: Handle region selector like any selector
Instead of doing the previous match magic itself, use the
DESCENDANT_FOR_REGION hack and let that one do the magic.
Benjamin Otte [Mon, 8 Dec 2014 05:08:30 +0000 (06:08 +0100)]
cssselector: Use simple class macro for * selector
As a side effect, the :not(*) selector needs to be renamed because the
macro chooses a different name for it.
Benjamin Otte [Mon, 8 Dec 2014 04:55:36 +0000 (05:55 +0100)]
cssselector: Introduce descendant matcher for regions
This is just a way to handle regions more conveniently. What this does
is to change the descendant matcher into a maybe-descendant matcher
whenever the current object we're parsing might be a region. Because "*"
might also refer to a region and not just a new element.
See testsuite/reftests/css-match-region-matches-star.ui for a testcase.
Benjamin Otte [Mon, 8 Dec 2014 04:42:11 +0000 (05:42 +0100)]
cssselector: Support :not() for position pseudoclasses
This is simple now that the latest commit used the macro and
autogenerates the SelectorClass to use.
Benjamin Otte [Mon, 8 Dec 2014 04:39:01 +0000 (05:39 +0100)]
cssselector: Use simple macro for position pseudoclass
This is possible now that the region-specific code is gone.
Benjamin Otte [Mon, 8 Dec 2014 02:06:21 +0000 (03:06 +0100)]
cssselector: Handle region flags during parse
When parsing a selector like
tab:active
We used to create 2 selector objects, one for the region, and one for
the pseudoclass. Now, for convenience, we special-case region
pseudoclass parsing so that the active flag is added to the region
selector.
A side effect is that ":nth-child(1)" no longer works for regions.
Hopefully people didn't use this but used the saner ":first-child"
instead.
Benjamin Otte [Sat, 6 Dec 2014 13:01:02 +0000 (14:01 +0100)]
cssselector: Turn into a union
Instead of just keeping a gpointer data, make GtkCssSelector a union
that has actual proper members.
Benjamin Otte [Sat, 6 Dec 2014 00:00:10 +0000 (01:00 +0100)]
cssselector: Introduce a hash func per selector
This is unnecessary itself, but useful in preparation for further
commits.
Benjamin Otte [Thu, 4 Dec 2014 02:42:50 +0000 (03:42 +0100)]
cssselector: Inline a function
Matthias Clasen [Wed, 10 Dec 2014 01:36:03 +0000 (20:36 -0500)]
GtkStackSwitcher: Don't take focus on click
Moving the focus to the stack switcher buttons is
never what is wanted here.
Matthias Clasen [Tue, 9 Dec 2014 23:27:57 +0000 (18:27 -0500)]
inspector: Don't force-switch to the objects tab
We used to switch to the objects tab when an object is
picked, but now may have two places with picker buttons:
the objects tab and the interactive tab.
So, just don't do that anymore.
Matthias Clasen [Tue, 9 Dec 2014 23:22:12 +0000 (18:22 -0500)]
inspector: Allow extensions to request a picker
Look for a 'use-picker' property on the extension page
and add a picker button to the header bar if says so.
Matthias Clasen [Tue, 9 Dec 2014 23:17:01 +0000 (18:17 -0500)]
inspector: Another indentation fix
Matthias Clasen [Tue, 9 Dec 2014 22:49:23 +0000 (17:49 -0500)]
inspector: Reindent ui file
Matthias Clasen [Tue, 9 Dec 2014 05:41:11 +0000 (00:41 -0500)]
Make gtk_tree_model_foreach robust
Make gtk_tree_model_foreach safe for callbacks that modify
the model, even if the model does not have persistent iters.
https://bugzilla.gnome.org/show_bug.cgi?id=722781
Matthias Clasen [Tue, 9 Dec 2014 05:22:56 +0000 (00:22 -0500)]
Don't compare booleans
Just use negation.
Christian Hergert [Tue, 9 Dec 2014 04:19:23 +0000 (20:19 -0800)]
window: fallback to window muxer if no widget has focus
This ensures that we can still match accelerators for the window even
if no widget currently has focus.
Carlos Soriano [Wed, 3 Dec 2014 14:53:59 +0000 (15:53 +0100)]
gtkwindow: Use actions from focused widget to activate accel
Currently we only take into account the window GActionGroup for
activating the accels.
However, the application could have some custom GActionGroup in the
chain of focused widgets that could want to activate some action if
some accel is activated while that widget is focused.
To allow applications to set accels on widgets that use custom
GActionGroups, simply use the muxer of the focused widget, which
already contains the actions of the parents.
https://bugzilla.gnome.org/show_bug.cgi?id=740682
Matthias Clasen [Tue, 9 Dec 2014 00:34:23 +0000 (19:34 -0500)]
Fix another header guard oversight
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741252
Matthias Clasen [Tue, 9 Dec 2014 00:31:56 +0000 (19:31 -0500)]
Fix some oversights with header guards
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741254
Alexander Larsson [Mon, 1 Dec 2014 14:37:05 +0000 (15:37 +0100)]
Inspector: Support extending the inspector using GIOModules
This allows external modules to add a page to the Gtk Inspector.
https://bugzilla.gnome.org/show_bug.cgi?id=740983
Matthias Clasen [Mon, 8 Dec 2014 20:39:15 +0000 (15:39 -0500)]
Trivial off-by-one fix
We have a tenth example.
Matthias Clasen [Mon, 8 Dec 2014 20:38:41 +0000 (15:38 -0500)]
Drop a few unneeded ifs
It does not hurt to pass NULL to g_list_free().
Muhammet Kara [Mon, 8 Dec 2014 19:38:02 +0000 (19:38 +0000)]
Updated Turkish translation
Muhammet Kara [Mon, 8 Dec 2014 19:20:34 +0000 (19:20 +0000)]
Updated Turkish translation
Matthias Clasen [Mon, 8 Dec 2014 14:16:24 +0000 (09:16 -0500)]
GtkWidget: Don't return FALSE as a pointer
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741251
Matthias Clasen [Mon, 8 Dec 2014 14:15:07 +0000 (09:15 -0500)]
GtkPlacesSidebar: Don't return FALSE as a pointer
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741250
Matthias Clasen [Mon, 8 Dec 2014 14:13:57 +0000 (09:13 -0500)]
GtkMenuTracker: Don't return FALSE as a pointer
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=741249
Matthias Clasen [Mon, 8 Dec 2014 11:39:19 +0000 (06:39 -0500)]
GtkEntry: Refresh when activity ends
We need to queue a redraw when pulse mode is ended by
setting a fraction. Noticed in gtk3-demo's search entry demo.
Kjell Ahlstedt [Fri, 11 Apr 2014 16:52:39 +0000 (18:52 +0200)]
docs: Explain 'icon theme context' better in gtkicontheme.c
Add links from gtk_icon_theme_list_contexts() to
gtk_icon_theme_list_icons(), and from there to the Icon Theme
Specification and the Icon Naming Specification.
https://bugzilla.gnome.org/show_bug.cgi?id=461249
Matthias Clasen [Mon, 8 Dec 2014 04:28:52 +0000 (23:28 -0500)]
Handle KP keys in copy/paste keybindings
We currently handle KP variants of some keys, but not consistenly.
https://bugzilla.gnome.org/show_bug.cgi?id=364566
Phillip Wood [Sun, 22 Dec 2013 18:17:32 +0000 (18:17 +0000)]
Editable cells demo: Add new row at cursor
Adding rows to the bottom of the list is confusing as you cannot see
them if the window is small so it is not apparent that anything has
happened. Fix this by adding the new row immediately below the current
row and set the cursor on the new row so it is ready to be edited.
https://bugzilla.gnome.org/show_bug.cgi?id=721939
Matthias Clasen [Sun, 7 Dec 2014 23:12:46 +0000 (18:12 -0500)]
Add a note to the ::destroy docs
Clarify that ::destroy is not suitable for saving widget state.
https://bugzilla.gnome.org/show_bug.cgi?id=710793
Trần Ngọc Quân [Sun, 7 Dec 2014 08:06:11 +0000 (15:06 +0700)]
Updated Vietnamese translation
Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
Emmanuele Bassi [Sat, 6 Dec 2014 13:30:24 +0000 (13:30 +0000)]
examples: Fix clean rule in stand alone Makefiles
Remove all the built files, including the exampleapp binary.
Emmanuele Bassi [Sat, 6 Dec 2014 13:25:01 +0000 (13:25 +0000)]
examples: Add stand alone Makefile for application10
Missed out on the last application examples.
Ankita Patil [Thu, 6 Nov 2014 12:16:02 +0000 (17:46 +0530)]
GtkEntry: Added gtk_entry_grab_focus_without_selection()
Providing a way to focus an entry without selecting its contents.
https://bugzilla.gnome.org/show_bug.cgi?id=735838
Matthias Clasen [Sat, 6 Dec 2014 02:24:43 +0000 (21:24 -0500)]
GtkTextTag: Add two missing property set cases
These were overlooked when adding ::fallback and ::letter-spacing
recently.
Matthias Clasen [Sat, 6 Dec 2014 01:05:46 +0000 (20:05 -0500)]
Update docs
Document new fields in GtkTextAttributes, remove redundant comments.
Matthias Clasen [Sat, 6 Dec 2014 00:58:23 +0000 (19:58 -0500)]
Minor documentation fixes
Matthias Clasen [Sat, 6 Dec 2014 00:29:39 +0000 (19:29 -0500)]
Raleigh: Fix css for active notebook tabs
This was not kept up-to-date when we changed notebootk
tab rendering.
https://bugzilla.gnome.org/show_bug.cgi?id=741185
Carlos Soriano [Thu, 4 Dec 2014 15:21:46 +0000 (16:21 +0100)]
gtkscale: Draw smaller marks
As a design request, use smaller marks.
https://bugzilla.gnome.org/show_bug.cgi?id=741117
Carlos Soriano [Fri, 5 Dec 2014 10:09:56 +0000 (11:09 +0100)]
widget-factory: Add a discontinuous GtkScale with marks
So designers can tweak the marks and developers can see how a
discontinuos scale is implemented.
https://bugzilla.gnome.org/show_bug.cgi?id=741117
Matthias Clasen [Fri, 5 Dec 2014 04:28:33 +0000 (23:28 -0500)]
Add epoxy to GTK_PRIVATE_PACKAGES
We are using epoxy api in GtkGLArea, so we need to link against it.
https://bugzilla.gnome.org/show_bug.cgi?id=740162
Matthias Clasen [Fri, 5 Dec 2014 03:26:14 +0000 (22:26 -0500)]
places sidebar: Fix the sort function
When returning 1 for a pair (a,b), a sort function must
return -1 for the pair (b,a), otherwise things can go
badly.
https://bugzilla.gnome.org/show_bug.cgi?id=739729
Debarshi Ray [Tue, 11 Nov 2014 18:02:22 +0000 (19:02 +0100)]
file-chooser: Don't wait for ENTER to initiate search
Most of the core GNOME applications (eg., gnome-control-center,
gnome-documents, and nautilus) start searching as soon as the text
changes, and don't wait for the user to hit ENTER. It would be nice to
follow the same pattern.
https://bugzilla.gnome.org/show_bug.cgi?id=739977
Matthias Clasen [Thu, 4 Dec 2014 05:08:30 +0000 (00:08 -0500)]
Allow inserting Pango markup in text buffers
This has been a very long-standing feature request.
https://bugzilla.gnome.org/show_bug.cgi?id=59390
Matthias Clasen [Thu, 4 Dec 2014 04:13:13 +0000 (23:13 -0500)]
GtkTextView: Add fallback and letter-spacing support
Add support for the Pango attributes controlling font fallback
and letter spacing to GtkTextTag.
https://bugzilla.gnome.org/show_bug.cgi?id=740954
Piotr Drąg [Wed, 3 Dec 2014 14:31:23 +0000 (15:31 +0100)]
Updated POTFILES.skip
Jakub Steiner [Wed, 3 Dec 2014 10:42:06 +0000 (11:42 +0100)]
HC: use child istead of descendant selectors for linking
Since widgets subelements are now both widget childs and widget
classes, say .spinbutton.button and .spinbutton .button,
the linking logic needs to be adapted to be stricter with
child selectors. This fixes vertically linked spinbuttons.
Jakub Steiner [Tue, 2 Dec 2014 14:00:30 +0000 (15:00 +0100)]
HC: sidebars and vertical toolbars with borders
- the assumption for vertical toolbar being on the left is perhaps
a little daring, but...
https://bugzilla.gnome.org/show_bug.cgi?id=740859
Lapo Calamandrei [Wed, 3 Dec 2014 10:29:12 +0000 (11:29 +0100)]
Adwaita: use child istead of descendant selectors for linking
Since widgets subelements are now both widget childs and widget
classes, say .spinbutton.button and .spinbutton .button, the linking
logic needs to be adapted to be stricter with child selectors.
This fixes vertically linked spinbuttons.
Chun-wei Fan [Tue, 2 Dec 2014 07:57:17 +0000 (15:57 +0800)]
test/gtkgears.c: Fix Builds on Systems Without M_PI
Use G_PI in place of M_PI to fix the build on compilers that do not have
M_PI defined.
https://bugzilla.gnome.org/show_bug.cgi?id=740795
Trinh Anh Ngoc [Tue, 2 Dec 2014 15:09:21 +0000 (22:09 +0700)]
Add separator
https://bugzilla.gnome.org/show_bug.cgi?id=741027
Trinh Anh Ngoc [Tue, 2 Dec 2014 14:27:23 +0000 (21:27 +0700)]
Remove icon view window shadow
https://bugzilla.gnome.org/show_bug.cgi?id=741027
Matthias Clasen [Wed, 3 Dec 2014 01:06:33 +0000 (20:06 -0500)]
Reshuffle some docs
Matthias Clasen [Wed, 3 Dec 2014 00:54:33 +0000 (19:54 -0500)]
Use resources for icons
This fixes icons after the recent directory reshuffling, and
is just the right thing to do, since these icons are in resources
anyway.
Matthias Clasen [Wed, 3 Dec 2014 00:13:24 +0000 (19:13 -0500)]
Improve action-namespace example
This needs to have some space around the button for the popover
to show up.
Emmanuele Bassi [Tue, 2 Dec 2014 19:27:52 +0000 (19:27 +0000)]
docs: Mention the standalone Makefile for examples
And point to the README file.
https://bugzilla.gnome.org/show_bug.cgi?id=741041
Emmanuele Bassi [Tue, 2 Dec 2014 19:21:18 +0000 (19:21 +0000)]
docs: Add a README to the examples directory
https://bugzilla.gnome.org/show_bug.cgi?id=741041
Emmanuele Bassi [Tue, 2 Dec 2014 19:15:03 +0000 (19:15 +0000)]
Add standalone Makefile for the examples
We want to allow people to build the examples easily, without
necessarily requiring them to build the whole of GTK+.
https://bugzilla.gnome.org/show_bug.cgi?id=741041
Carlos Garnacho [Tue, 2 Dec 2014 14:44:04 +0000 (15:44 +0100)]
popover: make smarter wrt previous focus widget lifetime
If the previous focus widget is unmapped (eg. hidden, scheduled for
destruction, etc), make the popover forget about it and grant focus
back to the window itself.
Marco Trevisan (Treviño) [Tue, 2 Dec 2014 13:59:47 +0000 (14:59 +0100)]
gdkgl: pass the correct number of quads to gdk_gl_texture_quads
And call it only if that's the case
Matthias Clasen [Tue, 2 Dec 2014 13:29:24 +0000 (08:29 -0500)]
css: Avoid excessive shadow rendering
The shadow rendering code had code to exit early if we determine
that the shadow is entirely clipped away. Unfortunately, the check
based on cairo clip extents fails for any clip regions that are
more complicated than axis-aligned rectangles, and we are using
a hollow rounded rectangle here. So, instead, do the check manually,
using the just-introduced API in GtkRoundedBox.
Matthias Clasen [Tue, 2 Dec 2014 13:26:36 +0000 (08:26 -0500)]
Add clipping apis to GtkRoundedBox
This adds two functions for checking whether an axis-aligned
rectangle is completely outside or inside of a rounded box.
These are not trying to be exact, but fast.
Jasper St. Pierre [Tue, 2 Dec 2014 02:01:18 +0000 (18:01 -0800)]
gtkwidget: Fix a typo preventing the CSD input shape from applying
We were setting "csd-shade" but reading from "csd-region".